package com.campus.domain.Dto;

import com.campus.domain.TSysRole;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
@Accessors(chain = true)
@ApiModel("登陆对象")
public class UserLoginDto {

    @ApiModelProperty(name = "用户Id")
    private Long id;
    @NotBlank(message = "用户名不能为空")
    private String loginName;
    @NotBlank(message = "密码不能为空")
    private String password;
    @NotBlank(message = "性别不能为空")
    private String gender;
    @NotBlank(message = "生日不能为空")
    private Date birthday;
    @NotBlank(message = "电话不能为空")
    private String phone;
    @NotBlank(message = "邮箱不能为空")
    private String email;
    @NotNull(message = "角色不能为空")
    private List<TSysRole> roles;
    private String status;
}
